package org.kealinghornets.nxtdroid;

import org.kealinghornets.nxtdroid.NXT.LightSensor;
import org.kealinghornets.nxtdroid.NXT.NXTThread;
import org.kealinghornets.nxtdroid.NXT.TouchSensor;

/**
 * Created by jychuah on 11/3/13.
 */
public class MyNXTThread extends NXTThread {

    public MyNXTThread() {
        setNXTThreadName("i see the light");
    }

    public void run() {
        log("SUP");
        while (true){wait (5000)}
        LightSensor theLightsensornope= getLightSensor(PORT_1)

        int lightValue;
        log ("nope");
        wait (1500);
        while (true){
            lightValue= theLightsensornope.getLightValue();
            log("Light value:" + lightValue)
            wait (1500);
        }


    }
}
